<?php
function printOption($sql)
{
    $result = mysql_query($sql);
			   while($r = mysql_fetch_array($result))
			   {
				 echo "<option value='$r[0]' >$r[1]</option>";
				 }
}